package com.hjt.gulimall.order.feign;

import com.hjt.common.to.product.SpuInfoTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author:97007
 * @date:2021/10/9 19:34
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {

    @GetMapping("/product/spuinfo/getBySkuId/{skuId}")
    SpuInfoTo getSpuInfoBySkuId(@PathVariable("skuId") Long skuId);
}
